
/**
 * @author Administrator
 *
 */
package com.zsrt.java.day20161223.cg.demo05;

import org.junit.Test;

public class ForDemo{
	/**
	 * ��1 ��ʼ�ӵ�10 ���� ÿ�β���Ϊ1
	 */
	
//	for(�����Ķ��壻������䣻�������仯�����){}
	@Test
	public void for01(){
		int sum = 0;
		for(int begin = 1;begin <= 100;begin++){
			sum = sum + begin;
		}
		System.out.println("sum= "+ sum);
	}	
}